package data.mapper.implementation;

import data.mapper.Mapper;


/*
 * author LIU Xiao
 */
public class LabelMapperNum2Bool implements Mapper<Integer, Boolean>{
	public Boolean map(Integer from) {
		if(from == null) return null;
		if (from==1)
			return true;
		else if (from==0)
			return false;
		else 
			return null;
	}

}
